package com.sfx.messagequeue.common.returns;

import com.sfx.messagequeue.common.arguments.BasicArguments;
import com.sfx.messagequeue.mqServer.core.BasicProperties;

import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * Description: 这个类主要是服务器给订阅者推送消息的参数
 * User: sfx
 * Date: 2023-08-11
 * Time: 16:14
 */
public class SubscribeReturns extends BasicArguments implements Serializable {
    //消费者标识
    private String consumerTag;
    //消息属性
    private BasicProperties basicProperties;
    //消息实体
    private byte[] body;

    private boolean ok;

    public void setOk(boolean ok) {
        this.ok = ok;
    }

    public String getConsumerTag() {
        return consumerTag;
    }

    public void setConsumerTag(String consumerTag) {
        this.consumerTag = consumerTag;
    }

    public BasicProperties getBasicProperties() {
        return basicProperties;
    }

    public void setBasicProperties(BasicProperties basicProperties) {
        this.basicProperties = basicProperties;
    }

    public byte[] getBody() {
        return body;
    }

    public void setBody(byte[] body) {
        this.body = body;
    }
}